import 'package:aqueduct/managed_auth.dart';
import 'package:dart_serve_study/dart_serve_study.dart';

class User extends ManagedObject<_User>
    implements _User, ManagedAuthResourceOwner<_User> {
  @Serialize(input: true, output: false) //只能输入不能输出
  String password; //需要密码
}

class _User extends ResourceOwnerTableDefinition {
  @Column(nullable: true)
  bool isMan; //是否为男

  @Column(nullable: true)
  String nickName; //用户昵称

  @Column(nullable: true)
  String avatar; //头像

  DateTime createTime; //创建时间

  @Column(nullable: true)
  DateTime updateTime; //更新时间

  @Column(nullable: true)
  DateTime lastTime;//最后登录的时间
  
}
